import request from '@/utils/request'

// 自定义表单页面查询
export function lowCodePageList(data) {
  return request({
    url: `/marketing/admin/lowCodePage/list?page=${data.page}&pageSize=${data.pageSize}`,
    method: 'post',
    data
  })
}

// 自定义表单页面复制
export function CopylowCodePage(params) {
  return request({
    url: '/marketing/admin/lowCodePage/copy',
    method: 'get',
    params
  })
}

// 自定义表单页面编辑更新页面表单
export function lowCodePageUpdate(data) {
  return request({
    url: '/marketing/admin/lowCodePage/update',
    method: 'post',
    data
  })
}

// 自定义表单获取二维码
export function getH5ShareQRcode(params) {
  return request({
    url: '/marketing/admin/lowCodePage/getH5ShareQRcode',
    method: 'get',
    params
  })
}

// 自定义表单更新表单状态
export function updateStatus(data) {
  return request({
    url: '/marketing/admin/lowCodePage/updateStatus',
    method: 'post',
    data
  })
}

// 自定义表单查看数据列表
export function CustomFormViewData(data) {
  return request({
    url: `/marketing/admin/lowCode/page/select/list?page=${data.page}&pageSize=${data.pageSize}`,
    method: 'post',
    data
  })
}

// 自定义表单查看数据列表表头
export function fromComponentList(data) {
  return request({
    url: '/marketing/admin/lowCode/page/select/fromComponentList',
    method: 'post',
    data
  })
}

// 自定义表单查看数据列表内容
export function listFromData(data) {
  return request({
    url: `/marketing/admin/lowCode/page/select/listFromData?page=${data.page}&pageSize=${data.pageSize}`,
    method: 'post',
    data
  })
}

// 自定义表单装修模块列表信息
export function lowCodeModuleList(data) {
  return request({
    url: `/marketing/admin/lowCodeModule/list?page=${data.page}&pageSize=${data.pageSize}`,
    method: 'post',
    data
  })
}

// 自定义表单装修模块新增
export function lowCodeModuleAdd(data) {
  return request({
    url: '/marketing/admin/lowCodeModule/add',
    method: 'post',
    data
  })
}

// 自定义表单装修模块/表单模块复制
export function lowCodeModuleCopy(params) {
  return request({
    url: '/marketing/admin/lowCodeModule/copy',
    method: 'get',
    params
  })
}

// 自定义表单装修模块删除
export function lowCodeModuleDelete(data) {
  return request({
    url: '/marketing/admin/lowCodeModule/delete',
    method: 'post',
    data
  })
}
